package com.biubiu.biubiuexam.common.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * 前端创建简答题时传递的 Dto Sa = Short answer 简答题
 */
@Data
public class CreateSaQuestionDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "题目描述不能为空！")
    private String description;

    @NotBlank(message = "答案不能为空！")
    private String answer;

}
